char* mergeAlternately(char* word1, char* word2) {
    int word1_num=strlen(word1);
    int word2_num=strlen(word2);
    char*arr=malloc((word1_num+word2_num+1));
   int a=0;
    if(word1_num>word2_num)
    {
       for(int i=0;i<word2_num;i++)
       {
        arr[a++]=word1[i];
        arr[a++]=word2[i];
       }
     for(int i=word2_num;i<word1_num;i++)
     {
        arr[a++]=word1[i];
     }
    }else if(word1_num<word2_num)
    {
     
       for(int i=0;i<word1_num;i++)
       {
        arr[a++]=word1[i];
        arr[a++]=word2[i];
        }
      for(int i=word1_num;i<word2_num;i++)
     {
        arr[a++]=word2[i];
     }
    }else{
       for(int i=0;i<word2_num;i++){
        arr[a++]=word1[i];
        arr[a++]=word2[i];
        }
        }
        arr[a]='\0';
        return arr;

}